package com.cc.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

public class Emp implements Serializable {
    @Serial
    private static final long serialVersionUID = 23296028564741369L;
    // 员工编号
    private String id;
    // 员工姓名
    private String name;
    // 员工年龄
    private int age;
    // 员工生日
    private Date bir;
    // 员工薪资
    private Double salary;
    // 员工部门编号
    private String deptId;
    private Dept dept;//关系属性

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBir() {
        return bir;
    }

    public void setBir(Date bir) {
        this.bir = bir;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", bir=" + bir +
                ", salary=" + salary +
                ", deptId='" + deptId + '\'' +
                '}';
    }
}
